package com.example.administrator.test0317;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

public class MainActivity extends AppCompatActivity {

    private Button btnTest;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        btnTest = (Button) findViewById(R.id.btn_test);
    }

    public void openMap(View view) {
        Toast.makeText(this,"openMap success",Toast.LENGTH_SHORT).show();
        Intent intent = new Intent(this,MapActivity.class);
        startActivity(intent);
    }
}
